﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="UserAdd.aspx.cs" Inherits="Runda.EShop.SaaS.SysManage.UserAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
 <script type="text/javascript">
     function CheckForm() {
         if ($('#<%=txtAccount.ClientID %>').val() == '') { 
             alert('请输入用户帐号');
             return false;
         }

         if ($('#<%=txtUserName.ClientID %>').val() == '') { 
             alert('请输入用户姓名');
             return false;
         }
     }
  </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <table cellspacing="3" cellpadding="3" width="100%" class="i_center_table11">
        <colgroup>
            <col width="120" />
            <col />
            <col width="120" />
            <col />
        </colgroup>
        <tbody>
            <tr>
                <td class="Required">
                    登录帐号
                </td>
                <td>
                    <asp:TextBox ID="txtAccount" runat="server" CssClass="input"></asp:TextBox>
                </td>
                <td style="vertical-align: top">
                    用户姓名
                </td>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Email</td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                </td>
                <td>
                    部门</td>
                <td>
                    <asp:TextBox ID="txtDeptName" runat="server" ClientIDMode="Static"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="Required">
                    角色
                </td>
                <td colspan="3">
                    <asp:CheckBoxList ID="cblRoles" runat="server" RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return CheckForm();" />
                    &nbsp;<input id="btnClose" type="button" value="关闭" class="button" onclick="parent.$.ligerDialog.hide();" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
